<?$attributes = array('class' => 'email', 'id' => 'checknew');
echo form_open('adv/dels', $attributes);?>    

<input type="hidden" name="page" value="<?php echo (int)$this->uri->segment('3')?>">
        <table class="admindata">
            <thead>
                <tr>
                    <th colspan="7">
                        <input type="submit" onclick="return verify_del();" name="btn_submit" class="submit" value="Xóa">
                        Hiện có <?php echo $num?> Quảng cáo<?php echo $pagination?>
                        <div class="fr">
                           <!-- <a href="<?php echo site_url('adv/add')?>">Thêm mới</a> -->
                        </div>
                    </th>
                </tr>
                <tr>
                    <th class="checkbox"><input type="checkbox" name="sa" id="sa" onclick="check_chose('sa', 'ar_id[]', 'checknew')" /></th>
                     <th width="150">Hình ảnh</th>
                     <th>Tiêu đề</th>
                     <th><?php echo lang('adv_customer_name');?></th>
                     <th><?php echo lang('adv_page_name');?></th>
                     <th><?php echo lang('adv_position_name');?></th>
                    <th class="publish" style="width: 90px;">Active</th>
                </tr>                
            </thead>
            <?
            $k=1;
            foreach($list as $rs):?>
            <tr class="row<?php echo $k?>">
                <td><input type="checkbox" name="ar_id[]" value="<?php echo $rs->adv_id?>"></td>
               <td>
                <?php if($rs->adv_file){?>
                    <img alt="<?php echo $rs->adv_title;?>" src="<?php echo base_url_site()."uploads/images/adv/vn/".$rs->adv_file;?>" width="100" height="100">
                    <?php }else{ ?>
					<img alt="<?php echo $rs->adv_title;?>" src="<?php echo base_url_site()."uploads/media/images/noimages.jpg"?>" width="100" height="100" />	
						<?php } ?>
                </td>
                <td><?php echo $rs->adv_title?></td>
                <td><?php echo $rs->adv_customer_name?></td>
                <td><?php echo $rs->adv_page_name?></td>
                <td><?php echo $rs->adv_position_name?></td>
                <td align="center">
                    <?php echo icon_edit('adv/edit/'.$rs->adv_id)?>
                    <span id="publish<?php echo $rs->adv_id?>"><?php echo icon_active("'adv'","'adv_id'",$rs->adv_id,$rs->bl_active)?></span>
                    <?php echo icon_del('adv/del/'.$rs->adv_id.'/'.(int)$this->uri->segment(4))?>
                </td>
            </tr>
            <?
            $k=1-$k;
            endforeach;?>
            <tfoot>
                <td colspan="7">
                    <input type="submit" class="submit" onclick="return verify_del();" name="btn_submit" value="Xóa">
                    Hiện có <?php echo $num?> Quảng cáo <?php echo $pagination?>
                </td>
            </tfoot>
        </table>  
<?php echo form_close()?>  
